package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum PortraitAuthClientType {

    ANDROID((byte) 1, "android"),
    IOS((byte) 2, "ios"),
    H5((byte) 3, "h5"),
    WEB((byte) 4, "web");

    private Byte value;

    private String desc;

    public static PortraitAuthClientType of(byte value) {
        for (PortraitAuthClientType t : values()) {
            if (t.value == value) {
                return t;
            }
        }
        return null;
    }

}
